package com.comtop.topcloud.device.model;

import com.comtop.topcloud.device.model.mysql.EnergyEfficiencyManagement;
import com.comtop.topcloud.device.model.mysql.ProcessingPlan;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class EnergyConfig extends EnergyEfficiencyManagement {

    private List<ProcessingPlan> processingPlans;

    public boolean isNull() {
        return StringUtils.isEmpty(this.getId());
    }
}
